package com.bit.forum.services;

import com.bit.forum.model.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {

    @Transactional
    void create(Article article);
    List<Article> selectAll();
    List<Article> selectAllByBoardId(Long boardId);

    List<Article> selectByUserId( Long userId);
    Article selectDetailById (Long id);
    void modify(Long id,String title,String content);
    Article selectById(Long id);
    void thumbsUpById(Long id);
    @Transactional
    void deleteById(Long id);
    void addOneReplyCountById(Long id);
}
